<?php
class User{
	private $data;

	public function Init($IDs){
		$this->data = array(	);
		$this->data['id'] = $IDs[0];
		$this->load->database();
		$this->load->model('User_model');
		xj_log_message('debug', '['.__METHOD__.']'.'============================');
	}
	// 获取用户信息
	public function Get($IDs){
		$data = array(	);
		$data['id'] = $IDs[0];
		
		xj_load_view("user.php", $data);
	}
	// 验证用户
	public function Post($id){
		$login_name = $this->input->post_get('login_name');
		$login_password = $this->input->post_get('login_password');
		$u_id = $this->User_model->check_user_password($login_name, $login_password);
		$this->load->view("user.php", $this->data);
	}
	public function GetLists($IDs){
		$data = array(	);
		$data['id'] = $IDs[1];
	
		xj_load_view("index.php", $data);
	}
}